/*
 * Copyright (c) 2015. For Intelligent Group.
 */


package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.Resource;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Rovey.Luo on 2015/11/25.
 */
public interface PermissionDao extends PagingAndSortingRepository<Resource,Long>, JpaSpecificationExecutor{

    Resource findById(Long id);
    
    Resource findByName(String name);

    Resource findByCode(String code);

    List<Resource> findByCodeLike(String code);

}
